//
//  PhoneCertifyViewController.m
//  bitcoin
//
//  Created by caiyajun on 2018/5/9.
//  Copyright © 2018年 比特币. All rights reserved.
//

#import "PhoneCertifyViewController.h"

@interface PhoneCertifyViewController ()
@property (weak, nonatomic) IBOutlet UIButton *changeCertifyBtn;

@end

@implementation PhoneCertifyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIBarButtonItem *back = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"arrowleft-icon"] style:UIBarButtonItemStylePlain target:self action:@selector(backAction:)];
    self.navigationItem.leftBarButtonItem = back;
    
    
    [self.changeCertifyBtn setImage:[UIImage imageNamed:@"btmactive-icon"] forState:UIControlStateNormal];
    [self.changeCertifyBtn setImage:[UIImage imageNamed:@"btm-icon"] forState:UIControlStateSelected];
    
}

- (void)backAction:(UIBarButtonItem *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    return 2;
}
- (IBAction)changAction:(UIButton *)sender {
    sender.selected=!sender.selected;
}

@end
